﻿@using BlueLotus7.ArchiveSystem.Common;
@model BlueLotus7.Eden.KB.Models.DomainScopeTypeListControlModel
<select id="domainScopeTypeList">
    @{
        
        if (Model.HasEmptyItem)
        {
        <text>
        <option value=""></option>
        </text>
       
        }
        foreach (var one in Enum.GetValues(typeof(DomainScopeType)))
        {
        <text>
        <option value="@(Convert.ToInt32(one).ToString())" @(Model.SelectedValue == ((int)one).ToString() ? "selected='selected'" : string.Empty)>
            @(one.ToString())
        </option>
        </text>
        }
    }
</select>